#! /bin/sh

SUCCESS=0
FAIL=0

for tcf in ${srcdir}/fail/*.cf; do
    ${NORMALIZE} <${tcf} >/dev/null 2>/dev/null
    if test $? = 0; then
        SUCCESS=`expr $SUCCESS + 1`
    else
        FAIL=`expr $FAIL + 1`
    fi
done

echo "$0: Unexpected Successes:${SUCCESS} Expected Failures:${FAIL}"
if test $SUCCESS = 0; then
    exit 0;
else
    exit 99;
fi
